package org.yzh.web.controller;

import io.github.yezhihao.netmc.session.Session;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yzh.protocol.t808.T0200;
import org.yzh.web.mapper.LocationMapper;
import org.yzh.web.model.vo.Location;
import org.yzh.web.model.vo.LocationQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @create 2021--09--16 0:58
 */
@RestController
@RequestMapping("/location")
public class LocationController {
    @Autowired
    private LocationMapper locationMapper;
    @Operation(summary = "获取所有设备的历史移动坐标")
    @GetMapping("/getDeviceLocationList")
    public List<Location> getDeviceLocationList(LocationQuery query) {
        return locationMapper.find(query);
    }
}
